package com.travel.member.service.impl;

import com.travel.common.to.TicketTo;
import com.travel.member.feign.TicketFeignService;
import com.travel.member.service.TicketCollectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TicketCollectionServiceImpl implements TicketCollectionService {

    @Autowired
    TicketFeignService ticketFeignService;

    /**
     * 获取收藏的票务信息
     * @param memberId
     */
    @Override
    public List<TicketTo> getMyTicketCollection(Long memberId) {

        // 远程调用travel-ticket微服务
        List<TicketTo> myTicketCollection = ticketFeignService.getMyTicketCollection(memberId);
        return myTicketCollection;

    }
}
